<template>
  <div style="margin-top: 20px">
    <el-form style="width: 600px" ref="form" :model="form" label-width="80px">

      <el-form-item label="商品分类">
        <el-input v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="商品名称">
        <el-input v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="品牌">
        <el-input v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="副标题">
        <el-input v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="价格">
        <el-input v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="商品分类">
        <el-input v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="商品介绍">
        <el-input type="textarea" v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="包装列表">
        <el-input type="textarea" v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item label="售后服务">
        <el-input type="textarea" v-model="form.name"></el-input>
      </el-form-item>

      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    }
  }
}
</script>

<style scoped>

</style>